﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using IP.Core.IPCommon;
using IP.Core.IPData;
using IP.Core.IPUserService;

using BKIDS;
using BKIDS.CDBNames;
using BKIUS;
using System.Data;


public partial class QuanLyNhanSu_F206_QuanLyLoaiHocVien : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }


    #region Members
           
    #endregion

    #region Structers

    #endregion
    #region Private Methods
    private void XoaTrang()
    {
        m_txt_ten_loai_hv.Text = "";
        m_txt_mo_ta.Text = "";
        m_txt_he_so_giam.Text = "";
        m_txt_ghi_chu.Text = "";
        m_lbl_lois.Visible = false;
        m_lbl_thong_bao.Visible = false;
        m_btt_capnhat.Enabled = false;
    }

    private void data_obj_2_from(US_DM_LOAI_HOC_VIEN ip_us_loai_hoc_vien)
    {
        try
        {
             m_txt_ten_loai_hv.Text = ip_us_loai_hoc_vien.strTEN_LOAI_HV;
             m_txt_mo_ta.Text = ip_us_loai_hoc_vien.strMO_TA;
             m_txt_he_so_giam.Text = CIPConvert.ToStr(ip_us_loai_hoc_vien.dcHE_SO_GIAM_HOC_PHI);
             m_txt_ghi_chu.Text = ip_us_loai_hoc_vien.strGHI_CHU;
        }
        catch (Exception v_e)
        {
            m_lbl_lois.Text = v_e.Message;
            m_lbl_lois.Visible = true;
        } 
    }

    private void data_from_2_obj(US_DM_LOAI_HOC_VIEN ip_us_loai_hoc_vien)
    {
        try
        {
            ip_us_loai_hoc_vien.strTEN_LOAI_HV = m_txt_ten_loai_hv.Text;
            ip_us_loai_hoc_vien.strMO_TA = m_txt_mo_ta.Text;
            ip_us_loai_hoc_vien.dcHE_SO_GIAM_HOC_PHI = CIPConvert.ToDecimal(m_txt_he_so_giam.Text);
            ip_us_loai_hoc_vien.strGHI_CHU = m_txt_ghi_chu.Text;
        }
        catch (Exception v_e)
        {
            m_lbl_lois.Text = v_e.Message;
            m_lbl_lois.Visible = true;
        }        
    }


    #endregion
    #region Envents      
    protected void m_btt_taomoi_Click(object sender, EventArgs e)
    {

    }
    protected void m_btt_capnhat_Click(object sender, EventArgs e)
    {

    }
    protected void m_btt_xoatrang_Click(object sender, EventArgs e)
    {
        XoaTrang();
    }
    #endregion
}